---
title: TeamPermission
full: true
---

The `TeamPermission` object represents a permission that a user has within a team. Currently, it contains only an `id` to specify the permission.

You can get `TeamPermission` objects by calling functions such as `user.getPermission(...)` or `user.listPermissions()`.

### Table of Contents

<ClickableTableOfContents title="TeamPermission Table of Contents" code={`type TeamPermission = {
    id: string;  //$stack-link-to:#teampermissionid
};`} />

---

<CollapsibleTypesSection type="teamPermission" property="id" defaultOpen={false}>
  <MethodLayout>
    <MethodContent>
      The identifier of the permission as a `string`.
    </MethodContent>
    <MethodAside title="Type Definition">

      ```typescript
      declare const id: string;
      ```
    </MethodAside>
  </MethodLayout>
</CollapsibleTypesSection>
